import Vue from 'vue'
import Router from 'vue-router'
import Homepage from '@/components/Homepage'
import Find from '@/components/Find'
import Profile from '@/components/Profile'
import Goodsdetails from '@/components/goodsdetails'
import Shop from '@/components/Shop'
import Login from '@/components/Login'
import Order from '@/components/Order'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Homepage',
      component: Homepage
    },
    {
      path: '/find',
      name: 'Find',
      component: Find
    },
    {
      path: '/profile',
      name: 'Profile',
      component: Profile
    },
    {
      path: '/goodsdetails',
      name: 'goodsdetails',
      component: Goodsdetails
    },
    {
      path: '/shop',
      name: 'Shop',
      component: Shop
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/order',
      name: 'Order',
      component: Order
    }
  ]
})
